package gui2.g2;

import javax.swing.table.DefaultTableModel;

public class ChatTableModel extends DefaultTableModel implements
		ChatModelListener {

	@Override
	public void messageAdded(String msg) {
		if (msg.startsWith("H")) {
			addRow(new Object[] { msg });
		}
	}

	@Override
	public int getColumnCount() {
		return 1;
	}

	@Override
	public Class<?> getColumnClass(int columnIndex) {
		return String.class;
	}
}
